package com.buba.aspect.service.Impl;

import com.buba.aspect.dao.LogMapper;
import com.buba.aspect.pojo.Log;
import com.buba.aspect.service.LogService;
import com.buba.system.pojo.Page;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@DubboService
public class LogServiceImpl implements LogService {
    private  LogMapper logMapper;
    @Autowired
    public void setLogMapper(LogMapper logMapper) {
        this.logMapper = logMapper;
    }

    @Override
    public void Tlog(Log log) {
        logMapper.Tlog(log);
    }

    @Override
    public Long selLogCount() {
        return logMapper.selLogCount();
    }

    @Override
    public List<Log> selLog(Page page) {
        return logMapper.selLog(page);
    }

    @Override
    public Long selLogCountByName(Map<String, Object> map) {
        return logMapper.selLogCountByName(map);
    }

    @Override
    public List<Log> selLogByName(Map<String, Object> map) {
        return logMapper.selLogByName(map);
    }
}
